package com.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author hlt
 * @since 2019-12-25
 */
public class Commodity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    private String commid;
    /**
     * 商品名
     */
    private String commname;
    /**
     * 商品描述
     */
    private String commdesc;
    /**
     * 视频
     */
    private String videourl;
    /**
     * 原价
     */
    private BigDecimal orimoney;
    /**
     * 售价
     */
    private BigDecimal thinkmoney;
    /**
     * 商品所在学校
     */
    private String school;
    /**
     * 发布时间
     */
    private Date createtime;
    /**
     * 修改时间
     */
    private Date updatetime;
    /**
     * 结束时间
     */
    private Date endtime;
    /**
     * 0违规 1正常 2删除  3待审核
     */
    private Integer commstatus;
    /**
     * 常用选项：自提，可小刀，不议价等选项
     */
    private String common;
    /**
     * 常用类别字段
     * */
    private String common2;
    /**
     * 商品其他图集合
     * */
    private List<String> otherimg;

    /**
     * 浏览量
     */
    private Integer rednumber;
    /**
     * 商品类别
     */
    private String category;
    /**
     * 简介图
     */
    private String image;
    /**
     * 用户id
     */
    private String userid;
	public String getCommid() {
		return commid;
	}
	public void setCommid(String commid) {
		this.commid = commid;
	}
	public String getCommname() {
		return commname;
	}
	public void setCommname(String commname) {
		this.commname = commname;
	}
	public String getCommdesc() {
		return commdesc;
	}
	public void setCommdesc(String commdesc) {
		this.commdesc = commdesc;
	}
	public String getVideourl() {
		return videourl;
	}
	public void setVideourl(String videourl) {
		this.videourl = videourl;
	}
	public BigDecimal getOrimoney() {
		return orimoney;
	}
	public void setOrimoney(BigDecimal orimoney) {
		this.orimoney = orimoney;
	}
	public BigDecimal getThinkmoney() {
		return thinkmoney;
	}
	public void setThinkmoney(BigDecimal thinkmoney) {
		this.thinkmoney = thinkmoney;
	}
	public String getSchool() {
		return school;
	}
	public void setSchool(String school) {
		this.school = school;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public Date getUpdatetime() {
		return updatetime;
	}
	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}
	public Date getEndtime() {
		return endtime;
	}
	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}
	public Integer getCommstatus() {
		return commstatus;
	}
	public void setCommstatus(Integer commstatus) {
		this.commstatus = commstatus;
	}
	public String getCommon() {
		return common;
	}
	public void setCommon(String common) {
		this.common = common;
	}
	public String getCommon2() {
		return common2;
	}
	public void setCommon2(String common2) {
		this.common2 = common2;
	}
	public List<String> getOtherimg() {
		return otherimg;
	}
	public void setOtherimg(List<String> otherimg) {
		this.otherimg = otherimg;
	}
	public Integer getRednumber() {
		return rednumber;
	}
	public void setRednumber(Integer rednumber) {
		this.rednumber = rednumber;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Override
	public String toString() {
		return "Commodity [commid=" + commid + ", commname=" + commname + ", commdesc=" + commdesc + ", videourl="
				+ videourl + ", orimoney=" + orimoney + ", thinkmoney=" + thinkmoney + ", school=" + school
				+ ", createtime=" + createtime + ", updatetime=" + updatetime + ", endtime=" + endtime + ", commstatus="
				+ commstatus + ", common=" + common + ", common2=" + common2 + ", otherimg=" + otherimg + ", rednumber="
				+ rednumber + ", category=" + category + ", image=" + image + ", userid=" + userid + "]";
	}
    
	

}
